//
//  ExchangeClass.m
//  iStock Global
//
//  Created by YING CHIEH WENG on 11/8/16.
//  Copyright 2011年 Trade Stock. All rights reserved.
//

#import "ExchangeClass.h"

@implementation ExchangeClass

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}


-(NSString *)Get_exchange_fullname:(NSString*) ticker{
    //標記:Add Target need Program            
    if ([ticker isEqualToString:@"CBT"  ]) {
        return@"Chicago Board of Trade";
    }
    else  if ([ticker isEqualToString:@"CME"  ]) {
        return@"Chicago Mercantile Exchange";
    }
    else  if ([ticker isEqualToString:@"NYB"  ]) {
        return @"New York Board of Trade";
    }             
    else  if ([ticker isEqualToString:@"CMX"  ]) {
        return  @"New York Commodities Exchange";
    } 
    else  if ([ticker isEqualToString:@"NYM"  ]) {
        return @"New York Mercantile Exchange";
    } 
    else  if ([ticker isEqualToString:@"OB"  ]) {
        return @"OTC Bulletin Board Market";
    } 
    else  if ([ticker isEqualToString:@"PK"  ]) {
        return @"Pink Sheets";
    }     
    else  if ([ticker isEqualToString:@"BA"  ]) {
        return @"Buenos Aires Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"VI"  ]) {
        return @"Vienna Stock Exchange";
    }             
    else  if ([ticker isEqualToString:@"AX"  ]) {
        return @"Australian Stock Exchange";
    }   
    else  if ([ticker isEqualToString:@"SA"  ]) {
        return @"BOVESPA - Sao Paolo Stock Exchange";
    }             
    else  if ([ticker isEqualToString:@"TO"  ]) {
        return @"Toronto Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"V"  ]) {
        return @"TSX Venture Exchange";
    }             
    else  if ([ticker isEqualToString:@"SN"  ]) {
        return @"Santiago Stock Exchange";
    }                
    else  if ([ticker isEqualToString:@"SS"  ]) {
        return NSLocalizedString(@"Shanghai Stock Exchange",@"上海證券交易所");
    } 
    else  if ([ticker isEqualToString:@"SZ"  ]) {
        return NSLocalizedString(@"Shenzhen Stock Exchange",@"深圳證券交易所");
    }  
    else  if ([ticker isEqualToString:@"CO"  ]) {
        return @"Copenhagen Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"NX"  ]) {
        return @"Euronext";
    } 
    else  if ([ticker isEqualToString:@"PA"  ]) {
        return @"Paris Stock Exchange";
    }
    else  if ([ticker isEqualToString:@"BE"  ]) {
        return @"Berlin Stock Exchange";
    }                
    else  if ([ticker isEqualToString:@"BM"  ]) {
        return @"Bremen Stock Exchange";
    }             
    else  if ([ticker isEqualToString:@"DU"  ]) {
        return @"Dusseldorf Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"F"  ]) {
        return @"Frankfurt Stock Exchange";
    }             
    else  if ([ticker isEqualToString:@"HM"  ]) {
        return @"Hamburg Stock Exchange";
    }                  
    else  if ([ticker isEqualToString:@"HA"  ]) {
        return @"Hanover Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"MU"  ]) {
        return @"Munich";
    } 
    else  if ([ticker isEqualToString:@"SG"  ]) {
        return @"Stuttgart Stock Exchange";
    }     
    else  if ([ticker isEqualToString:@"DE"  ]) {
        return @"XETRA Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"HK"  ]) {
        return NSLocalizedString(@"Hong Kong Exchange",@"香港交易所");
    } 
    else  if ([ticker isEqualToString:@"BO"  ]) {
        return @"Bombay Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"NS"  ]) {
        return @"National Stock Exchange of India";
    } 
    else  if ([ticker isEqualToString:@"JK"  ]) {
        return @"Jakarta Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"TA"  ]) {
        return @"Tel Aviv Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"MI"  ]) {
        return @"Milan Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"MX"  ]) {
        return @"Mexico Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"AS"  ]) {
        return @"Amsterdam Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"NZ"  ]) {
        return @"New Zealand Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"OL"  ]) {
        return @"Oslo Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"SI"  ]) {
        return NSLocalizedString(@"Singapore Stock Exchange",@"新加坡交易所");
    }  
    else  if ([ticker isEqualToString:@"KS"  ]) {
        return @"Korea Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"KQ"  ]) {
        return @"KOSDAQ";
    }  
    else  if ([ticker isEqualToString:@"BC"  ]) {
        return @"Barcelona Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"BI"  ]) {
       return @"Bilbao Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"MF"  ]) {
        return @"Madrid Fixed Income Market";
    }  
    
    
    else  if ([ticker isEqualToString:@"MC"  ]) {
        return @"Madrid SE C.A.T.S.";
    }  
    else  if ([ticker isEqualToString:@"MA"  ]) {
        return @"Madrid Stock Exchange";
    } 
    else  if ([ticker isEqualToString:@"ST"  ]) {
        return @"Stockholm Stock Exchange";
    }  
    else  if ([ticker isEqualToString:@"SW"  ]) {
        return @"Swiss Exchange";
    }  
    else  if ([ticker isEqualToString:@"TWO"  ]) {
        return NSLocalizedString(@"Taiwan OTC Exchange",@"台灣櫃台交易所");
    } 
    else  if ([ticker isEqualToString:@"TW"  ]) {
        return NSLocalizedString(@"Taiwan Stock Exchange",@"台灣證券交易所");
    }  
    else  if ([ticker isEqualToString:@"L"  ]) {
        return @"London Stock Exchange";
    }  
    else{
        return @"United States Stock Exchange";             
    }     
    
    
     

}
@end
